package com.settlement.system.model.entity.common;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.settlement.system.converter.DateFormatYearMonthPeriodConvert;
import com.settlement.system.converter.WeightTypeConvert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
/**
 * 【RR-费用分配权数】菜单 的 【订单列表】页签
 * @author xiaochuan
 * @since 2022-12-28
 */
@Data
@ExcelIgnoreUnannotated
@HeadStyle(fillBackgroundColor = 9,fillForegroundColor = 9)
@HeadRowHeight(value = 20)
@HeadFontStyle(fontHeightInPoints = 14)
public class TblCostWeightOrder extends BaseModel implements Serializable {


    /**
     * 权数类型。1，当月发退货；2，近3月发货；
     */
    @ColumnWidth(16)
    @ExcelProperty(value = "权数类型",converter = WeightTypeConvert.class)
    @ApiModelProperty(value = "权数类型。1，当月发退货；2，近3月发货；")
    private String weightType;

    /**
     * 会计期间
     */
    @ColumnWidth(16)
    @ExcelProperty(value = "会计期间",converter = DateFormatYearMonthPeriodConvert.class)
    @ApiModelProperty(value = "会计期间")
    @JsonFormat(pattern = "yyyyMM月", timezone = "GMT+8")
    private Date accountingPeriod;

    /**
     * 店铺编码
     */
    @ColumnWidth(16)
    @ExcelProperty(value = "店铺编码")
    @ApiModelProperty(value = "店铺编码")
    private String shopNo;

    /**
     * 渠道
     */
    @ColumnWidth(13)
    @ExcelProperty(value = "渠道")
    @ApiModelProperty(value = "渠道")
    private String channelName;

    /**
     * 入账主体
     */
    @ColumnWidth(22)
    @ExcelProperty(value = "入账主体")
    @ApiModelProperty(value = "入账主体")
    private String companyNo;

    /**
     * 渠道编码
     */
    @ApiModelProperty(value = "渠道编码")
    private String channelNo;

    /**
     * 外部订单号
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "外部订单号")
    @ApiModelProperty(value = "外部订单号")
    private String thirdOrderNo;

    /**
     * 品牌部
     */
    @ApiModelProperty(value = "品牌部")
    private String brandUnitName;

    /**
     * 品牌部编码
     */
    @ApiModelProperty(value = "品牌部编码")
    private String brandUnitNo;

    /**
     * 品牌部简称
     */
    @ApiModelProperty(value = "品牌部简称")
    private String brandUnitNameShort;

    /**
     * 品牌(部)简称
     */
    @ColumnWidth(18)
    @ExcelProperty(value = "品牌(部)简称")
    @ApiModelProperty(value = "品牌(部)简称")
    private String brandOrUnitNameShort;

    /**
     * 发货金额
     */
    @ColumnWidth(16)
    @ExcelProperty(value = "发货金额")
    @ApiModelProperty(value = "发货金额")
    private Double sendAmount;
}
